package br.com.ava.core.configuracao;

import java.util.ResourceBundle;

public final class ConfiguracaoConverter {

    private static final ConfiguracaoConverter INSTANCE;
    private ResourceBundle bundle;

    static {
        INSTANCE = new ConfiguracaoConverter();
    }

    private ConfiguracaoConverter() {
        this.bundle = ResourceBundle.getBundle("configuracao");
    }

    public static synchronized ConfiguracaoConverter getInstance() {
        return INSTANCE;
    }

    public String getAsString(String chave) {
        String mensagemStr = bundle.getString(chave);
        return mensagemStr;
    }
}